package com.opcode.nebulamobil.information.dataforms.costadataforms;

import com.opcode.nebulamobil.information.dataforms.DataForm;


/*
 * Copyright (c) 2013 Opcode Yazılım San. ve Tic. Ltd. ﬁti.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the copyright holder nor the names of any contributors
 *    may be used to endorse or promote products derived from this
 *    software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

/**
 * Sistemin {@code JSONService} yapısı taraf˝ndan uyumlaştırılmış {@code DataForm} yapısıdır. Elde edilen veya karşı tarafa
 * gönderilecek olan veriler bu form yapısı ¸zerinden sistemde kullan˝lmaktad˝r.
 * @author 	Erhan ERDOGAN
 * @version	1.0.0
 * @since	com.opcode.protocol 1.0.0
 */
public class JSON extends DataForm {

	/**
	 * @since	com.opcode.protocol 1.0.0
	 */
	private static final long serialVersionUID = -1499418525053053838L;
	
	/**
	 * Data form elemanƒ±nƒ±n adƒ±nƒ± tutacak olan deƒüi≈ükendir.
	 * @since	com.opcode.protocol 1.0.0
	 */
	private String type;
	
	/**
	 * Sistemin JSON eklentisi tarafƒ±ndan olu≈üturulacak olan formlar i√ßin kullanƒ±lacaktƒ±r.
	 * @since	com.opcode.protocol 1.0.0
	 */
	public JSON() {}
	
	/**
	 * Olu≈üturulacak olan JSON formunun tip metnini alarak gerekli yapƒ±landƒ±rma
	 * i≈ülemini ger√ßekle≈ütiren yapƒ±landƒ±rƒ±cƒ±dƒ±r.
	 * @param 	type Olu≈üturulacak olan JSON formunun tip metnidir.
	 * @since	com.opcode.protocol 1.0.0
	 */
	protected JSON(String type) {
		this.type=type;
	}
	
	/**
	 * Data form elemanƒ±nƒ±n tip adƒ±nƒ± ayarlamak i√ßin kullanƒ±lacak olan uygulamadƒ±r.
	 * @param 	type Ayarlanacak olan tip isimdir.
	 * @since	com.opcode.protocol 1.0.0
	 */
	public void setType(String type) {
		this.type=type;
	}
	
	/**
	 * Data form elemanƒ±nƒ±n tip adƒ±nƒ± elde etmek i√ßin kullanƒ±lacak olan uygulamadƒ±r.
	 * @return	Geriye data form elemanƒ±nƒ±n tip adƒ± d√∂necektir.
	 * @since	com.opcode.protocol 1.0.0
	 */
	public String getType() {
		return this.type;
	}

}
